package com.huatai.common.utils;

import java.util.List;

public class ListUtils {

	public static <T> boolean isEmpty(List<T> list) {
		return list == null || list.isEmpty();
	}

	public static <T> boolean isNotEmpty(List<T> list) {
		return !isEmpty(list);
	}

	public static <T> void println(List<T> list) {
		if (ListUtils.isEmpty(list))
			return;
		for (T t : list) {
			System.out.println(t);
		}
	}

	/**
	 * 是否升序
	 * 
	 * @param list
	 * @param fields
	 * @param isAsc
	 */
	public static <T> void sort(List<T> list, String[] fields, Boolean[] isAsc) {

	}

}